linear equations using matrices